package cn.com.taiji.oospub.wechat.service.impl;

import cn.com.taiji.oospub.wechat.entity.GetOrderTimeSetup;
import cn.com.taiji.oospub.wechat.mapper.GetOrderTimeSetupMapper;
import cn.com.taiji.oospub.wechat.service.IGetOrderTimeSetupService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 
 * @since 2020-10-28
 */
@Service
public class GetOrderTimeSetupServiceImpl extends ServiceImpl<GetOrderTimeSetupMapper, GetOrderTimeSetup> implements IGetOrderTimeSetupService {
    @Autowired
    private GetOrderTimeSetupMapper getOrderTimeSetupMapper;


    @Override
    public List<GetOrderTimeSetup> listGetOrderSetupBySchoolId(String id) {
        QueryWrapper<GetOrderTimeSetup> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("school_id", id);
        return getOrderTimeSetupMapper.selectList(queryWrapper);
    }
}
